package com.ewzj.bigdata.mvp.ui.adapter;

import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ewzj.bigdata.R;


import java.util.List;

/**
 * author:zhangjing
 * 作用:
 * return:
 */

public class HotkeyAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
    public HotkeyAdapter(List<String> data) {
        super(R.layout.item_searchkey, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, final String s) {
        final TextView textView=baseViewHolder.getView(R.id.tv_keyword);
        textView.setText(s);
        baseViewHolder.addOnClickListener(R.id.tv_keyword);
        baseViewHolder.getConvertView().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }
}
